﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1.View
{
    public partial class sub_reports : Form
    {
        public sub_reports()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //DataTable dt = 

            //dataGridView1.DataSource = dt;
        }

        private void orderItemBindingNavigatorSaveItem_Click(object sender, EventArgs e)
        {
            //this.Validate();
            //this.orderItemBindingSource.EndEdit();
            //this.tableAdapterManager.UpdateAll(this.database1DataSet1);

        }

        private void stock_button_Click(object sender, EventArgs e)
        {
            Controller.Controller c = new Controller.Controller();
            DataTable dt = c.getOrderItemTable();
            dataGridView1.DataSource = dt;
            //this.Hide();
            //stockTableForm s = new stockTableForm();
            //s.ShowDialog();
        }

        private void supplier_button_Click(object sender, EventArgs e)
        {
            //dataGridView1.ClearSelection();
            Controller.Controller c = new Controller.Controller();
            DataTable dt = c.getSupplierTable();
            dataGridView1.DataSource = dt;
            //this.Hide();
            //SupplierTableForm s = new SupplierTableForm();
            //s.ShowDialog();
        }

        private void customer_Button_Click(object sender, EventArgs e)
        {
            Controller.Controller c = new Controller.Controller();
            DataTable dt = c.getCustomerTable();
            dataGridView1.DataSource = dt;
            
            //this.Hide();
            //customerTableFormRe c = new customerTableFormRe();
            //c.ShowDialog();
        }

        private void sub_reports_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click_1(object sender, EventArgs e)
        {
            this.Hide();
            Form0 f = new Form0();
            f.ShowDialog();
        }
    }
}
